package com.qianchang.microfinance.utils;

import static com.qianchang.microfinance.utils.DMConstant.Config.IMAGE_BASE_URL;
import static com.qianchang.microfinance.utils.DMConstant.Config.QIANPAN;

/**
 * 版    权:  深圳市迪蒙网络科技有限公司
 * 描    述:  <描述>
 * 修 改 人:  jiaohongyun
 * 修改时间:  2016/8/24
 */
public interface DMConstant {

    interface Config {
        /**
         * 使用协议http/https
         */
        String PROTOCOL = "http://";//协议
  String IP = "qmj.qianchangxx.com";//客服环境
   // String IP = "app.qianchangxx.com";//正式环境
       //String IP = "192.168.27.115";//本地陆德新测试环境
// String IP = "192.168.26.233";//本地莫勇测试环境
//        String IP = "192.168.26.116";//本地测试环境 李杜钦
//         String IP = "192.168.26.182";//自己电脑测试环境
        //String IP = "47.106.85.236";//远程测试环境

        String FILE_IP = PROTOCOL + IP + ":8090";  // 文件访问地址

        /**
         * 平台服务器接口地址
         */
        String BASE_URL = PROTOCOL + IP + ":8080";  // 访问地址
//        String BASE_URL = PROTOCOL + IP + ":8090";  // 客服访问地址端口

        String V = "/v";  //版本
        String USER = "/user";
        String USER_INFO = "/userInfo";
        String FRONT = "/front";
        String REPAYMENT = "/repayment";
        String CAPITAL = "/capital";
        String USER_APP = "/userApp";
        String APP_COVER_PAGE = "/appCoverPage";
        String QIANPAN = "/qianpen";
        String PROJECT = "/project";

        String BASE_USER = BASE_URL + USER;

        String BASE_USER_INFO = BASE_USER + USER_INFO + V;
        String BASE_FRONT = BASE_USER + USER_INFO + FRONT + V;
        String BASE_REPAYMENT = BASE_USER + REPAYMENT + Config.V;
        String BASE_CAPITAL = BASE_USER + CAPITAL + V;
        String BASE_APP_COVER = BASE_USER + APP_COVER_PAGE + V;
        String BASE_APP = BASE_USER + USER_APP + V;

        /**
         * 项目图片基本路径
         */
        String IMAGE_BASE_URL = BASE_URL;
    }

    interface ApiURL {

        String FIND_AGREEMENT = Config.BASE_USER + Config.PROJECT + "/agreement" + Config.V + "/detail.do";//贷后查看合同

        //用户相关
//        String LOGIN = Config.BASE_APP + "/login.do";           // 登录
        String LOGIN = Config.BASE_APP + "/appqmjlogin.do";           // 登录
        String REGISTER = Config.BASE_APP + "/register.do";     // 注册
        String LOGOUT = Config.BASE_APP + "/logout.do";         //登出
        String SEND_IDENTIFY_CODE = Config.BASE_APP + "/sendVerifyCode.do";//发送验证码
        String FIND_TRAD_PWD = Config.BASE_APP + "/findTransactionPwd.do";//是否有支付密码
        String CHECK_USER_PHONE_IS_EXIST = Config.BASE_APP + "/checkUserPhoneIsExist.do";//是否有支付密码

        String FIND_AGREEMENT_COMMON = Config.BASE_USER_INFO + "/findAgreementCommon.do";
        String FIND_MANAGE_LIST = Config.BASE_USER_INFO + "/findManageList.do"; //消息中心
        String UPDATE_NOTICE_STATUS = Config.BASE_USER_INFO + "/updateNoticeStatus.do";//更新消息状态

        String SEND_EMAIL = Config.BASE_USER + "/loan/cash/v/sendemail.do";//发送邮箱验证码
        String COMFIR_EMAIL=Config.BASE_USER + "/loan/cash/v/eMailVerifyAuth.do";//确认邮箱验证码
        //设置相关
        String FIND_APP_INDEX_SET = Config.BASE_FRONT + "/findAppIndexSet.do";
        String FIND_ABOUT = Config.BASE_FRONT + "/findAbout.do";
        String FEED_BACK = Config.BASE_FRONT + "/insertOpinionFeedback.do"; //意见反馈
        String HELP_CENTER_LIST = Config.BASE_FRONT + "/findHelpCenterList.do";
        String UPDATE_PWD_BY_PRE_PWD = Config.BASE_APP + "/updateLoginPassword.do";//修改登录密码
        String INSERT_TRAN_PWD = Config.BASE_APP + "/insertTransactionPwd.do";//设置支付密码
        String UPDATE_FORGET_TRAN_PWD = Config.BASE_APP + "/updateTransactionPwd.do";
        String UPDATE_PWD_BY_PHONE = Config.BASE_APP + "/updatePasswordByPhone.do";
        String UPLOAD_FILE = Config.BASE_USER + Config.V + "/uploadFile.do";
        String EXECUTE_OCR_INTERFACE = Config.BASE_USER + "/userApp/tencent" + Config.V + "/executeOCRInterface.do";//身份证识别人脸面
        String EXECUTE_OCR_FRONTINTER_FACE = Config.BASE_USER + "/userApp/tencent" + Config.V + "/executeOCRFrontInterface.do";//身份证识别国徽面
        String EXECUTE_SIGNIN_TERFACE = Config.BASE_USER + "/userApp/tencent" + Config.V + "/executeSignInterface.do";          //人脸识别信息获取
        String EXECUTE_SENDVERIFYPROOF = Config.BASE_APP + "/sendVerifyProof.do";                                           //工作证明 2017.12.27
        String EXECUTE_CREDIT_TONGDUN = Config.BASE_USER + "/qianpen" + Config.V + "/creditTongDun.do";                     //同盾认证 2018.1.2
        String EXECUTE_CREDIT_ZHIMA = Config.BASE_USER + "/qianpen" + Config.V + "/creditZhiMaH5.do";                             //芝麻信用2018.1.3
        //String EXECUTE_CREDIT_ZHIMA_CALLBACK = Config.BASE_USER + "/qianpen" + Config.V + "/creditZhiMaCallBack.do";             //钱盆芝麻信用分2018.1.4
        String OPEN_ACCOUNT = Config.BASE_USER + "/qianpen" + Config.V + "/openAccount.do";                                     //钱盆授权绑定银行卡
        String UNBIND_BANKCARD = Config.BASE_USER + "/qianpen" + Config.V + "/unbindBankCard.do";                                  //钱盆解绑绑定银行卡
        String BIND_BANKCARD = Config.BASE_USER + "/qianpen" + Config.V + "/bindBankCard.do";                                  //钱盆绑定银行卡
        String UPDATE_BANKCARD_PHONE = Config.BASE_USER + "/qianpen" + Config.V + "/updateBankCardPhone.do";                   //修改新网绑定银行卡预留手机号码
        String UPDATE_BANKCARD_PASSWORD = Config.BASE_USER + "/qianpen" + Config.V + "/updateBankCardPassword.do";                   //修改新网银行卡交易密码
        String AUTHORIZA_TION = Config.BASE_USER + "/qianpen" + Config.V + "/authorization.do";                                 //充值授权
        String RECHARGE_DO = Config.BASE_USER + "/qianpen" + Config.V + "/recharge.do";                                          //充值
        String WITHDRAW_DO = Config.BASE_USER + "/qianpen" + Config.V + "/withdraw.do";                                          //提现
        String FIND_BANKCARD = Config.BASE_USER + "/qianpen" + Config.V + "/findBankCard.do";                                    //银行卡列表
        //String FIND_ACCOUNT = Config.BASE_USER + "/qianpen" + Config.V + "/findAccount.do";                                          //帐号余额
        String FIND_ACCOUNT_RECORD = Config.BASE_USER + "/qianpen" + Config.V + "/findAccountRecord.do";                          //交易记录

        //用户信息相关
        String UPDATE_USER_PHOTO = Config.BASE_APP_COVER + "/updateUserPhoto.do";
        String UPDATE_FACE_RECOGNIT_ERESULT = Config.BASE_APP_COVER + "/updateFaceRecogniteResult.do";
        String TEST_AMOUNT = Config.BASE_APP_COVER + "/submitUserInfoAuth.do";
        String FIND_CARD_DETAIL = Config.BASE_APP_COVER + "/findUserBank.do";
        String FIND_CONTACT_INFO = Config.BASE_APP_COVER + "/findContactInfo.do";//查询联系人信息
        String FIND_USER_BASIC_INFO = Config.BASE_APP_COVER + "/findUserBasicInfo.do";        //首页接口
        String FIND_PRODUCT_DATA_LIST = Config.BASE_APP_COVER + "/findProductDataList.do";//产品列表
        String INSERT_CONTACT_INFO = Config.BASE_APP_COVER + "/insertContactInfo.do";//新增联系人
        String UPLOAD_FILES = Config.BASE_APP_COVER + "/submitUserAttach.do";
        String SUBMIT_ATTACHMENT_LIST = Config.BASE_APP_COVER + "/submitAttachList.do";
        String INSERT_STUDENT_INFO = Config.BASE_APP_COVER + "/insertUserEduInfo.do";//添加学生贷基本信息
        String FIND_STUDENT_INFO = Config.BASE_APP_COVER + "/findUserEduInfo.do";//查询学生贷基本信息
        String FIND_USER_ATTACH_ADDR = Config.BASE_APP_COVER + "/findUserAttachAddr.do";

        //账单相关
        String FIND_CONFIRM_AGREEMENT = Config.BASE_REPAYMENT + "/findConfirmAgreement.do";//查询借款合同  贷前的确认合同


        String QUERY_PLAN_LIST = Config.BASE_REPAYMENT + "/planList.do";//贷后 还款计划
        String FIND_REPAY_RECORD = Config.BASE_REPAYMENT + "/recordList.do";        //还款记录
        String GET_BILL_LIST = Config.BASE_REPAYMENT + "/list.do";//账单
        String GET_BILL_RECHAR = Config.BASE_REPAYMENT + "/rechar.do";//充值
        String REPAY = Config.BASE_USER + QIANPAN + Config.V + "/repayment.do";//余额还款
        String REPAY_BANK = Config.BASE_USER + "/tonglian" + Config.V + "/repayment.do";//通联还款
        String REPAY_BANK_H5 = Config.BASE_USER + "/tonglian" + Config.V + "/repaymentH5.do";//通联还款H5
        //String PRE_REPAY = Config.BASE_REPAYMENT + "/updateAdvanceRepayment.do";//提前还款
        String PRE_REPAY_GET =  Config.BASE_USER + "/qianpen" + Config.V + "/advancedRepaymentGet.do";//提前还款（计算金额）
        String PRE_REPAY_DO =  Config.BASE_USER + "/qianpen" + Config.V + "/advancedRepayment.do";//提前还款（执行还款）
        String REPAYMENT_PLAN_BEFORE = Config.BASE_REPAYMENT + "/executeRepaymentPlan.do";//贷前 还款计划
        String REPAY_DETAIL = Config.BASE_REPAYMENT + "/fidRepaymentDeatil.do";//还款详情
        String GO_RENEW_LOAN=Config.BASE_USER+"/project/cash/v/continuedLoadApply.do";//确定续贷
        String RENEW_LOAN=Config.BASE_USER+"/qianpen/v/continuedLoadCaculate.do";//续贷详情
        //充值提现相关
        String ONLINE_RECHARGE = Config.BASE_CAPITAL + "/onlineRecharge.do";
        String FIND_WITH_DRAW_FEE = Config.BASE_CAPITAL + "/findWithdrawFee.do";//提现手续费查询
        String WITH_DRAW = Config.BASE_CAPITAL + "/withdraw.do";//提现
        String GET_TRAD_RECORD_LIST = Config.BASE_CAPITAL + "/findUserCapitalList.do";//支付记录
        String FIND_USER_INFO = Config.BASE_CAPITAL + "/personalAccount.do";

        String PROJECT_INSERT = Config.BASE_USER + Config.PROJECT+"/cash/" + Config.V + "/insertnew.do";//新上标接口
        String PROJECT_CHECK = Config.BASE_USER + Config.PROJECT+"/cash/" + Config.V + "/insertcheck.do";//新上标接口

        String SUBMIT_RealName_Auth = Config.BASE_USER + "/app/realNameAuth" + Config.V + "/submitRealNameAuth.do";//实名认证提交
        String INSERT_BANK_CARD = Config.BASE_URL + "/pay/app/bankCardBind" + Config.V + "/toBankBind.do";//绑定银行卡 下一步
        String SEND_BANK_INDENTIFY_CODE = Config.BASE_URL + "/pay/app/bankCardBind" + Config.V + "/toSendMessage.do";//发送银行卡绑定 验证码;
        String FIND_BANK_LIST = Config.BASE_URL + "/pay/app/bankCardBind" + Config.V + "/findBankList.do";//查询所有银行列表
        String TO_SUBMIT_BANK = Config.BASE_URL + "/pay/app/bankCardBind" + Config.V + "/toSubmitBank.do";//绑定银行卡  提交

        String RECHARGE = Config.BASE_URL + "/qianpen" + Config.V + "/recharge.do";                         //2018.1.9鸿盛绑定银行卡


        String UPLOAD_FILE_BASIC_INFO = Config.BASE_USER + Config.V + "/uploadFile.do";// 基本信息 附件上传 图片上传
        String UPLOAD_HANDHELEIDCARD = Config.BASE_USER +"/rong360"+ Config.V + "/executehandIdcard.do";//手持身份证上传
        String UPDATE_HANDHELDIDCARD_PHOTO =Config.BASE_USER +"/rong360"+ Config.V + "/executeUpdateUserBasic.do";//提交手持身份证
        String LOAN_INTENT_LIST = Config.BASE_USER + "/loan/intent" + Config.V + "/list.do";//借款意向
        String LOAN_INTENT_DETAIL = Config.BASE_USER + "/loan/intent" + Config.V + "/detail.do";//借款意向详情
        String GET_MORTGAGE_LIST_DETAIL = Config.BASE_USER + Config.PROJECT + Config.V + "/findCollateralDetail.do";//押品信息详情


        String GET_CONFIG = Config.BASE_USER + "/product/cash" + Config.V + "/getConfig.do";
        String GET_PRODUCT_LIST = Config.BASE_USER + "/product/avalible" + Config.V + "/list.do";//获取产品列表
        String FIND_APPID_AND_PARAM = Config.BASE_USER + "/userApp/sesameScore" + Config.V + "/findAppIdAndParam.do";//获取芝麻信用分参数
        String SUBMIT_SE_SAME = Config.BASE_USER + "/userApp/sesameScore" + Config.V + "/submitSesame.do";//获取芝麻信用分


        String product_desc = Config.BASE_USER + "/product/campus" + Config.V + "/getDesc.do";//产品描述
        String FIND_TGREEMENT_NAME = Config.BASE_USER + "/userInfo" + Config.V + "/findTgreementName.do";//查询协议名称


        String FIND_SITE_LIST = Config.BASE_USER + "/userInfo/front" + Config.V + "/findSiteAdvList.do";//首页图片     userInfo/front/{v}/findSiteAdvList.do
        String FIND_PRE_REPLY_INFO = Config.BASE_USER + "/repayment" + Config.V + "/findProjectAheadRefund.do";//
        String FIND_PRINCIPAL = Config.BASE_USER + "/repayment" + Config.V + "/findStayLoanPrincipal.do";//提前还款界面获取未还本金
        String QUERY_MAX_RECHARGE_AMOUNT = Config.BASE_USER + "/capital" + Config.V + "/findRechargeFee.do";//查询充值的最大金额
        String IF_SHOW_MY_BILL_DETAIL_MSG = Config.BASE_USER + "/userInfo" + Config.V + "/property/getConfig.do";//查询充值的最大金额

        //获取易签宝签约Id
        String EXECUTEE_SIGN_ACCOUNT_ID = Config.BASE_USER + "/loan/cash" + Config.V + "/executeEsignAccountId.do";                 //查询借款合同  贷前的确认合同

        String FIND_PRODUCT_FORAPPALL = Config.BASE_USER + "/product/avalible" + Config.V + "/findProductForAppAll.do";                         //首页产品列表     2017.12.19 鸿胜科技新增
        String GET_MOBILE_INFO = Config.BASE_USER + "/mobile" + Config.V + "/getMobileInfo.do";                                              //提交手机信息
        String GET_MOBILE_GPS = Config.BASE_USER + "/mobile" + Config.V + "/getMobileGPS.do";                                                //提交手机GPS


        //鸿盛科技实名身份证认证
        String EXCUTE_FACE_PLUSORCIDENTITY_FRONT = Config.BASE_USER + "/rong360" + Config.V + "/executeFaceplusORCIdentityFront.do";                 //身份证正面提交
        String EXCUTE_FACE_PLUS_ORCIDENTITY_REVERSE = Config.BASE_USER + "/rong360" + Config.V + "/executeFaceplusORCIdentityReverse.do";            //身份证背面提交
        String EXECUTEIDENTITY_VERIFICATION = Config.BASE_USER + "/rong360" + Config.V + "/executeIdentityVerification.do";                          //身份证提交
        String FINDIDENTITY_VERIFICATION_INFO = Config.BASE_USER + "/rong360" + Config.V + "/findIdentityVerificationInfo.do";                       //用户身份验证情况
        String EXECUTE_FACE_RECOGNITION = Config.BASE_USER + "/rong360" + Config.V + "/executeFaceRecognition.do";                                   //用户人脸识别

        //会员中心
        String MEMBER_LEVLE_LIST = Config.BASE_CAPITAL + "/memberLevleList.do";                //会员中心 会员列表

        String FIND_USERCREDITS = Config.BASE_USER + "/appCoverPage" + Config.V + "/findUserCredits.do";                                    //验证列表出信用额度

        String FIND_WITHD = Config.BASE_USER + "/userApp" + Config.V + "/findWithd.do";                                  //贷款提现状态页面
        String FIND_WITHD_PROJECT = Config.BASE_USER + "/userApp" + Config.V + "/findWithdProjec.do";                                  //贷款提现状态页面

        String WFILE_UPLOAD = Config.BASE_USER + "/userApp" + Config.V + "/wFileUpload.do";                   //鸿胜科技签名图片上传

        String ES_CREATEAGREE = Config.BASE_USER + "/userApp" + Config.V + "/esCreateAgree.do";                   //鸿胜合同

        String RECHARGE_TONGLIAN = Config.BASE_USER + "/tonglian" + Config.V + "/recharge.do";                   //通联 充值

        String USERSUPPL_GET = Config.BASE_APP + "/usersupplget.do";           // 登录
        String USERSUPPL_SAVE = Config.BASE_APP + "/usersupplsave.do";           // 登录


        String TL_SINGNEDAPPLY =  Config.BASE_USER + "/tonglian" + Config.V + "/signedApply.do";                            //通联支付签约申请
        String TL_RESEND_SIGNEDCAPTCHA =  Config.BASE_USER + "/tonglian" + Config.V + "/resendSignedCAPTCHA.do";            //重发签约短信验证码
        String TL_SIGNEDAPPLYCONFIRM =  Config.BASE_USER + "/tonglian" + Config.V + "/signedApplyConfirm.do";                //签约申请确认
        String TL_MERCHANTPAYAPPLY =  Config.BASE_USER + "/tonglian" + Config.V + "/merchantPayApply.do";                       //商户支付申请（发起支付接口）
        String TL_PAYCONFIRM =  Config.BASE_USER + "/tonglian" + Config.V + "/payConfirm.do";                               //支付确认（使用支付确认）
        String TL_AGAINACQUIREPAYSMS =  Config.BASE_USER + "/tonglian" + Config.V + "/againAcquirePaySMS.do";                       //重新获取支付短信（使用重新获取支付短信）
        String TL_BNKCARDUNBINDING =  Config.BASE_USER + "/tonglian" + Config.V + "/bankCardUnbinding.do";                  //银行卡解绑（使用银行卡解绑）
        String TL_CHECKBANKCARD =  Config.BASE_USER + "/tonglian" + Config.V + "/checkBankCard.do";                         //判断是否绑定过银行卡


        String FINDGUIDELIST  = Config.BASE_USER + "/product" + Config.V + "/findGuideList.do";           //        发现 推荐引流产品
        String FIND_GUIDE_URL  = Config.BASE_USER + "/product" + Config.V + "/findGuideURL.do";           //        获取引流产品URL
        String FIND_GUIDE_TABLIST  = Config.BASE_USER + "/product" + Config.V + "/findGuideTabList.do";           //        获取首页引流产品


        String UPDATE_DEVICE_TOKEN = Config.BASE_APP + "/updateDeviceToken.do";           // 上传友盟推送 device_token

        String YEPAY_CHECKBANKCARD = Config.BASE_USER + "/yeepay" + Config.V + "/checkBankCard.do";                                     //易宝支付用户绑卡列表
        String YEPAY_SIGNEDAPPLY = Config.BASE_USER + "/yeepay" + Config.V + "/signedApply.do";                                       //易宝支付申请签约
        String YEPAY_SIGNEDAPPLYCONFIRM = Config.BASE_USER + "/yeepay" + Config.V + "/signedApplyConfirm.do";                         // 易宝支付确认签约
        String YEPAY_RESENDSIGNEDCAPTCHA = Config.BASE_USER + "/yeepay" + Config.V + "/resendSignedCAPTCHA.do";                       // 易宝支付签约重新发送验证码
        String YEPAY_QUERYBANKCARD = Config.BASE_USER + "/yeepay" + Config.V + "/queryBankCard.do";                                  //输入银行卡之后调用作用是校验
        String YEPAY_MERCHANTPAYAPPLY = Config.BASE_USER + "/yeepay" + Config.V + "/merchantPayApply.do";                            //易宝支付申请支付
        String YEPAY_PAYCONFIRM = Config.BASE_USER + "/yeepay" + Config.V + "/payConfirm.do";                                       //易宝支付确认支付
        String YEPAY_AGAINPAYSMS = Config.BASE_USER + "/yeepay" + Config.V + "/againAcquirePaySMS.do";                                       //易宝支付重发短信

        String YEPAY_DEFULTBANKCARD = Config.BASE_USER + "/yeepay" + Config.V + "/changeDefultBankCard.do";                                 //切换默认银行卡
        String YEPAY_CHECKBANKCARDNEW = Config.BASE_USER + "/yeepay" + Config.V + "/checkBankCardNew.do";                                     //查看银行卡列表

        String FY_APPPAY_SUCCESE = Config.BASE_USER + "/yeepay" + Config.V + "/appPaySucceseCallback.do";                                     //富友支付生成订单

        String RECHARGE_PAY=Config.BASE_USER+"/yeepay" + Config.V + "/findXudaiOrderdetils.do"; //续贷担保充值申请

        String RECHARGE_PAY_SUCCESE=Config.BASE_USER + "/yeepay" + Config.V + "/appXuDaiPaySucceseCallback.do";//续贷担保充值生成订单
    }




    interface StoreConstant {
        String Title = "Title";
        String Message = "Message";
        String NULL = IMAGE_BASE_URL;
    }

    interface DMCACHE_STRING {
        String DM_LOGIN_USER = "dimeng_login_user";
        String DM_BANK_CARD_DETAIL = "DM_BANK_CARD_DETAIL";
    }

    interface Code {
        String CODE_OK = "000000";
    }

    interface ZmxyAPPID {
        String appid = "1000730";
    }

    interface Rong360 {
        String appid = "2010682";
    }


}
